home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / TEST / INT.ASM < prev    next >
Assembly Source File  |  1996-12-17  |  598b  |  42 lines

  1. ; int86(), int386() ,int86x() tests
  2.  
  3. include qlib.inc
  4. include conio.inc
  5. include video.inc
  6. include stdio.inc
  7. include dos.inc
  8.  
  9. .data
  10.   reg REGS <>
  11.   vid dd 0a0000h
  12. .code
  13. main proc
  14.   mov reg.d._eax,13h
  15.   callp int386,10h,offset reg,offset reg  ;calls PMODE int
  16.  
  17. ;just print some garbage till key is slammed
  18. top:
  19.   mov ebx,46ch
  20.   mov eax,[ebx]
  21.  
  22.   mov edi,vid
  23.   mov ecx,320*200
  24. @@:
  25.   stosb
  26.   add eax,edi
  27.   dec ecx
  28.   jnz @b
  29.  
  30. @@:
  31.   call getch
  32.   cmp al,0
  33.   jz top
  34.  
  35.   mov reg.d._eax,3
  36.   callp int86,10h,offset reg,offset reg   ;calls RMODE int
  37.   ret
  38. main endp
  39.  
  40. end
  41.  
  42.